mw.loader.implement("ext.echo.alert",function(){(function($,mw){'use strict';if(mw.config.get('wgUserNewMsgRevisionId')&&!mw.config.get('echoNewMsgAlertDisplayed')){var alertMessage=mw.html.escape(mw.msg('colon-separator')+mw.msg('echo-new-messages'));$('#pt-mytalk a').append(alertMessage);$('#pt-mytalk a').addClass('mw-echo-alert');mw.config.set('echoNewMsgAlertDisplayed',true);}})(jQuery,mediaWiki);;},{"css":["#pt-mytalk{white-space:nowrap}#pt-mytalk a.mw-echo-alert{border-radius:2px;background-color:#F9C557;padding:0.25em 0.8em 0.2em 0.8em;color:#555555;font-weight:normal}\n/* cache key: enwiki:resourceloader:filter:minify-css:7:df4e6779a38dea83a8eadaf55c445a75 */"]},{"echo-new-messages":"You have new messages.","colon-separator":": "});mw.loader.implement("ext.echo.base",function(){(function(mw){'use strict';mw.echo={clickThroughEnabled:mw.config.get('wgEchoConfig').eventlogging.EchoInteraction.enabled,setupNotificationLogging:function(notification,context){var eventId=+ notification.attr('data-notification-event'),eventType=notification.attr('data-notification-type');if(!mw.echo.clickThroughEnabled){return;}mw.echo.logInteraction('notification-impression',context,eventId,eventType);notification.find('a').click(function(){mw.echo.logInteraction('notification-link-click',context,eventId,eventType);});},logInteraction:function(action,context,eventId,eventType){if(!mw.echo.clickThroughEnabled){return;}var myEvt={action:action};if(context){myEvt.context=context;}if(eventId){myEvt.eventId=eventId;}if(eventType){myEvt.notificationType=eventType;}mw.loader.using('ext.eventLogging',function(){mw.eventLog.logEvent('EchoInteraction',myEvt);});}};if(mw.echo.clickThroughEnabled){mw.loader.using('ext.eventLogging',function(){mw.eventLog.setDefaults('EchoInteraction',{version:mw.config.get('wgEchoConfig').version,userId:+mw.config.get('wgUserId'),editCount:+mw.config.get('wgUserEditCount')});});}})(mediaWiki);;},{"css":[ ".mw-echo-title{font-size:13px;line-height:14px;font-weight:normal}.mw-echo-content{font-size:13px;line-height:16px;overflow:hidden}.mw-echo-payload{margin-top:0.3em} .mw-echo-timestamp,.mw-echo-notification-footer{color:#6D6D6D;font-size:9px;margin-top:0.2em}.mw-echo-notifications{background-color:#EEEEEE}.mw-echo-notification{clear:both;display:block;color:#6D6D6D;line-height:90%;margin:0;min-height:30px;background-color:white;position:relative;padding-top:15px;padding-bottom:10px; overflow:hidden;zoom:1}.mw-echo-notification.mw-echo-unread{color:#252525}.mw-echo-notification span.autocomment{color:inherit;font-style:normal}.mw-echo-icon{width:30px;height:30px;float:left;margin-right:10px;margin-left:10px}\n/* cache key: enwiki:resourceloader:filter:minify-css:7:d872244f5d900170b06d0a764e48a7c0 */"]},{"echo-error-preference":"Error: Could not set user preference.","echo-error-token":"Error: Could not retrieve user token."});mw.loader.implement("ext.echo.desktop",function(){(function( $,mw){'use strict';mw.echo.desktop={appendUseLang:function(apiData){var curUri=new mw.Uri();if(curUri.query.uselang!==undefined){apiData.uselang=curUri.query.uselang;}return apiData;}};})(jQuery,mediaWiki);;},{},{});mw.loader.implement("ext.echo.overlay",function(){(function($,mw){'use strict';mw.echo.overlay={updateCount:function(newCount,rawCount){var $badge=$('.mw-echo-notifications-badge');$badge.text(newCount);if(rawCount!=='0'&&rawCount!==0){$badge.addClass('mw-echo-unread-notifications');}else{$badge.removeClass('mw-echo-unread-notifications');}},configuration:mw.config.get('wgEchoOverlayConfiguration'),buildOverlay:function(callback){var notificationLimit,$overlay=$('
').addClass('mw-echo-overlay'),$prefLink=$('#pt-preferences a'),count=0,apiData,api=new mw.Api({ajax:{cache:false}});notificationLimit=Math.floor(($(window).height()-134)/90);if(notificationLimit<1){notificationLimit=1;}else if(notificationLimit>8){notificationLimit=8;}apiData={'action':'query','meta': 'notifications','notformat':'flyout','notlimit':notificationLimit,'notprop':'index|list|count'};api.get(mw.echo.desktop.appendUseLang(apiData)).done(function(result){var notifications=result.query.notifications,unread=[],unreadTotalCount=result.query.notifications.count,unreadRawTotalCount=result.query.notifications.rawcount,$title=$('
'),$ul=$(''),titleText='',overflow=false,$overlayFooter,$markReadButton;if(unreadTotalCount!==undefined){mw.echo.overlay.updateCount(unreadTotalCount,unreadRawTotalCount);}$ul.css('max-height',notificationLimit*95+'px');$.each(notifications.index,function(index,id){var $wrapper,data=notifications.list[id],$li=$('
  • ').data('details',data).data('id',id).attr({'data-notification-category':data.category,'data-notification-event':data.id,'data-notification-type':data.type}).addClass('mw-echo-notification').append(data['*']).appendTo($ul);$li.find( '.mw-echo-title a, .mw-echo-notification-footer a').addClass('mw-echo-grey-link');$li.hover(function(){$(this).find('.mw-echo-title a').removeClass('mw-echo-grey-link');},function(){$(this).find('.mw-echo-title a').addClass('mw-echo-grey-link');});if($li.find('.mw-echo-notification-primary-link').length){$wrapper=$('').addClass('mw-echo-notification-wrapper').attr('href',$li.find('.mw-echo-notification-primary-link').attr('href')).click(function(){if(mw.echo.clickThroughEnabled){mw.echo.logInteraction('notification-link-click','flyout',+data.id,data.type);}});}else{$wrapper=$('
    ').addClass('mw-echo-notification-wrapper');}$li.wrapInner($wrapper);mw.echo.setupNotificationLogging($li,'flyout');if(!data.read){$li.addClass('mw-echo-unread');unread.push(id);}if($li.find('.mw-echo-dismiss').length){mw.echo.setUpDismissability($li);}});if(notifications.index.length>0){if(unreadRawTotalCount>unread.length){titleText=mw.msg('echo-overlay-title-overflow',unread.length,unreadTotalCount); overflow=true;}else{titleText=mw.msg('echo-overlay-title');}}else{titleText=mw.msg('echo-none');}$markReadButton=$('